<script src="../customer/controller/customer_manager_controller.js"></script>
<section class="wrapper">
	<h3>
		<i class="fa fa-angle-right"></i> Basic Table Examples
	</h3>
	<div class="row">
		<!-- /col-md-12 -->

		<div class="col-md-12 mt">
			<div class="content-panel">
				<h4>
					<i class="fa fa-angle-right"></i> 客户信息
				</h4>
				<hr>
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>头像</th>
							<th>昵称</th>
							<th>openid</th>
							<th>性别</th>
							<th>language</th>
							<th>城市</th>
							<th>省份</th>
							<th>国家</th>
							<th>remark</th>
							<th>groupid</th>
							<th>个人管理</th>
						</tr>
					</thead>
					<tbody id="customerPart">
						<script id="customer" type="text/html">
                              {{each arr as value i}}
                                  <tr>
                                       <td>{{i + 1}}</td>
                                       <td><img src="{{value.headimgurl}}" class="img-circle" width="20"></td>
                                       <td>{{value.nickname}}</td>
                                       <td>{{value.openid}}</td>
                                       <td>{{if value.sex == 1}}男{{/if}}{{if value.sex == 0}}女{{/if}}</td>
                                       <td>{{value.language}}</td>
                                       <td>{{value.city}}</td>
                                       <td>{{value.province}}</td>
                                       <td>{{value.country}}</td>
                                       <td>{{value.remark}}</td>
                                       <td>{{value.groupid}}</td>
                                       <td><button type="button" class="btn btn-round btn-info">详情</button></td>
                                  </tr>
                              {{/each}}
                        </script>
					</tbody>
				</table>
			</div>
			<!-- --/content-panel ---->
		</div>
		<!-- /col-md-12 -->


		<div class="col-md-12 mt">
			<div class="content-panel">
				<h4>
					<i class="fa fa-angle-right"></i> 分组信息
				</h4>
				<hr>
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>名称</th>
							<th>人数</th>
							<th>groupId</th>
						</tr>
					</thead>
					<tbody id="groupPart">
						<script id="groups" type="text/html">
                              {{each wxGroupList as value i}}
                                  <tr>
                                       <td>{{i + 1}}</td>
                                       <td>{{value.name}}</td>
                                       <td>{{value.count}}</td>
                                       <td>{{value.id}}</td>
                                  </tr>
                              {{/each}}
                        </script>
					</tbody>
				</table>
			</div>
			<!-- --/content-panel ---->
		</div>
	</div>

</section>
<!-- --/wrapper ---->

